# build.sh
# Build the KiwiDB website
# KiwiDB Community

raw_git_repo='https://atomgit.com/zouxiangneihe/KiwiDB.git'
public_git_repo='https://atomgit.com/zouxiangneihe/KiwiDB_Complete_Website.git'

echo 'Start to build KiwiDB website'
echo 'Please give your comment'

echo comment:
read comment

git add .
git commit -m "$comment"
git push -f $raw_git_repo main

npm install
rm -rf build
npm run build
cd build

git init
git add .
git commit -m "$comment"
git push -f $public_git_repo master